# coding: utf-8

#html下载器
import urllib2

class HtmlDownLoader(object):
    def download(self, url):
        if url is None:
            return None

        resp = urllib2.urlopen(url)

        if resp.getcode() != 200:
            return  None

        return resp.read()